package com.prik.facade;

import com.prik.facade.subsystem.LetterWriter;

/**
 * 测试类
 **/
public class Test {

    public static void main(String[] args) {
        // 写信的复杂过程，步骤顺序不能乱，也不能漏掉
        // LoveLetter loveLetter = new LoveLetter();
        // loveLetter.writeContext("loving u...");
        // loveLetter.writeAddress("To my lover...");
        // loveLetter.putIntoEnvelope();
        // loveLetter.sendLetter();

        PostOffice postOffice = new PostOffice();
        postOffice.sendLetter("love u", "xxx");
    }
}